package excercise;

import java.util.Scanner;

public class EX05_Q31 {

	public static void main(String[] args) {
	
	CreditCardVO ccv = new CreditCardVO();
	Scanner sc = new Scanner( System.in );
	int mycardno = sc.nextInt();
	int tmpno; 
	String mycard = "";
	
	
	int checkno1 = mycardno / 1000;
	int checkno2 = mycardno / 10000;
	
	if ( checkno1 == 35 ){
			if (mycardno == 356317 ) mycard = "JCB NH 농협";
			else if (mycardno == 356901) mycard = "JCB 신한 카드";
			else if (mycardno == 356912) mycard = "JCB 국민카드";
	}
	else if ( checkno2 == 4){
		
	}
	else if ( checkno2 == 5){
		
	}
	System.out.println( mycard );
	
		
		/*	
	// 숫자입력
	System.out.println( "신용카드 정보출력 시스템");	
	System.out.println( "6자리 숫자를 입력해주세요~ ");
	tmpno = sc.nextInt();
	ccv.setMycardNum( tmpno );
	
	// 정보출력
	CreditCardService.cardSerch( ccv );
	*/
	
	} // main

} // class

class CreditCardVO {
	
	private long mycardNum;
	
	// JCB카드
	private String jcbNonghyub;
	private String jcbshinhan;
	private String jcbKbKookmin;
	// 비자카드	
	private String bjBici;
	private String bjShinhan;
	private String bjKookmin;
	// 마스타카드, Maestro
	private String msShinhan;
	private String msYihan;
	private String msKookmin;
	
	
	// 생성자
	public CreditCardVO() {
		// JCB
		this.jcbNonghyub = "JCB NH농협카드";
		this.jcbshinhan = "JCB 신한카드";
		this.jcbKbKookmin = "JCB KB국민카드";
		// 비자
		this.bjBici = "비자 비씨카드";
		this.bjShinhan = "비자 신한카드";
		this.bjKookmin = "비자 국민은행";
		// 마스타카드
		this.msShinhan = "Maestro 신한카드";
		this.msYihan = "Maestro 외한카드";
		this.msKookmin = "Maestro 국민카드";
	}
	
	// mycard SG
	public void setMycardNum( int mycardNum ) { this.mycardNum = mycardNum; }
	public long getMycardNum() { return this.mycardNum; }
	
	// JCB Getter
	public String getJcbNonghyub() { return this.jcbNonghyub; }
	public String getJcbshinhan () { return this.jcbshinhan; }
	public String getJcbKbKookmin () { return this.jcbKbKookmin; }
	
	// 비자 Getter
	public String getBjBici () { return this.bjBici; }
	public String getBjKookmin () { return this.bjKookmin; }
	public String getBjShinhan () { return this.bjShinhan; }
	
	// 마스터 Getter
	public String getMsShinhan () { return this.msShinhan; }
	public String getMsYihan () { return this.msYihan; }
	public String getMsKookmin () { return this.msKookmin; }
	
} // CreditCardVO

class CreditCardService {
	
	static void cardSerch ( CreditCardVO ccvo ) {
	
		switch ( (int)ccvo.getMycardNum() / 10000 ) {
		case 35 : 
			System.out.println( "JCB 카드");
			if ( ccvo.getMycardNum() == 356317 ){
				System.out.println( ccvo.getJcbNonghyub() );
			}
			else if ( ccvo.getMycardNum() == 356901 ){
				System.out.println( ccvo.getJcbshinhan() );
			}
				
			else if  ( ccvo.getMycardNum() == 356912 ) {
				System.out.println( ccvo.getJcbKbKookmin() );
			}
			else {
				System.out.println( "맞는거 같은데 ~~?");
			}
			break;
			
		} // switch jcb
		
		switch ( (int)ccvo.getMycardNum() / 100000 ) {
		case 4 :
			System.out.println( "비자카드 ");
			if ( ccvo.getMycardNum() == 404825 ){
				System.out.println( ccvo.getBjBici() );
			}
			else if ( ccvo.getMycardNum() == 438676 ){
				System.out.println( ccvo.getBjShinhan() );
			}
			else if ( ccvo.getMycardNum() == 457973 ) {
				System.out.println( ccvo.getBjKookmin() );
			}
			else {
				System.out.println( "인건 확실한데.. 뭐가뭔지.. ");
			}
			break;
			
		case 5 :
			System.out.println( "마스타카드" );
			if ( ccvo.getMycardNum() == 515594 ){
				System.out.println( ccvo.getMsShinhan() );
			}
			else if ( ccvo.getMycardNum() == 524353 ){
				System.out.println( ccvo.getMsYihan() );
			}
			else if ( ccvo.getMycardNum() == 540926 ) {
				System.out.println( ccvo.getMsKookmin() );
			}
			else {
				System.out.println( "입니다. 자세한건 몰라요~ 잇힝~ ");
			}
			break;
		
		} // switch 비자, 마스타
		
				
		
	} // cardSerch 
	
} // CreditCardService


